<?php
	echo "<?xml version = '1.0' encoding = 'UTF-8' ?>";
	echo $this->doctype() . "\r\n"; 
?>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<?php 
			//echo $this->headTitle();
			echo $this->headScript();
			echo $this->headLink() . "\r\n";
		?>
	</head>
	<body>
		<div id = "pageWrapper">
			<div id = "header">
				
			</div>
			<div id = "menu">
				<?php 
					echo $this->navigation()
								->menu()
								->setMaxDepth(1);
				?>
			</div>
			<div id = "main">
				<div id = "content">
					<?php 
						if($this->result)
						 	echo $this->result;
						else
							echo $this->layout()->content; 
					?>
				</div>
			</div>
			<div id = "footer">
				<p>#footer</p>
			</div>
		</div>
	</body>
</html>